package dev.ece.suit.hexmap;

import dev.ece.suit.utils.CellIndex;

@Deprecated
public class HexMapCellIndex extends CellIndex {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4671910971577109351L;

	public HexMapCellIndex(int row, int col) {
		super(row, col);
	}
	
	public HexMapCell getHexMapCell(HexMapCell[][] cells) {
		if(this.getRow() < cells.length) {
			HexMapCell[] line = cells[this.getRow()];
			if(this.getCol() < line.length) {
				return line[this.getCol()];
			}
		}
		return null;
	}
	
}
